<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AutoCompleteExtender.aspx.cs" Inherits="AutoCompleteExample" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Auto-Complete Extender</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="TheScriptManager" runat="server"></asp:ScriptManager>
        
        <span>Type a country name (Hint: try starting with 'a' or 'i'):</span>
        <asp:TextBox ID="Country" runat="server"></asp:TextBox>

        <ajaxToolkit:AutoCompleteExtender ID="CountryAutoComplete" runat="server" 
                                  TargetControlID="Country"
                                  ServicePath="~/CountryService.asmx"
                                  ServiceMethod="GetCountries"
                                  MinimumPrefixLength="1"
                                  />

    </form>
</body>
</html>
